package com.have.blog.admin.redis;

import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

public interface AdminBlogCacheService {

    List<Map<String, Object>> getBlogCountByTag();
    void saveBlogCountByTag(List<Map<String, Object>> data, long expiration, TimeUnit timeUnit);
    void delBlogCountByTag();
    List<Map<String, Object>> getBlogCountByCategory();
    void saveBlogCountByCategory(List<Map<String, Object>> data, long expiration, TimeUnit timeUnit);
    void delBlogCountByCategory();
    Map<String, Object> getBlogContributeCount();
    void saveBlogContributeCount(Map<String, Object> data, long expiration, TimeUnit timeUnit);
    void delBlogContributeCount();
}
